package com.demo.bean.scope.service;

import com.demo.bean.scope.domain.UserModel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

@Service
@Scope("prototype")
public class UserService {

    @Autowired
    UserModel userModel;

    public void info() {
        System.out.println(userModel.toString());
    }
}
